cmake_minimum_required(VERSION 3.10)

# 数据库模块库
add_library(database_lib
    mysql_pool.cpp
)

# 添加头文件搜索路径
target_include_directories(database_lib PUBLIC
    ${CMAKE_SOURCE_DIR}/include
)

# 链接MySQL库
target_link_libraries(database_lib PUBLIC
    ${MySQL_LIBRARIES}
    common_logger_lib
) 